/**
 * 
 */
package org.jim.server.demo.school.dao;

import java.util.List;

import org.jim.common.packets.Group;
import org.jim.common.packets.User;
import org.jim.common.packets.UserMessageData;
import org.springframework.stereotype.Component;

/**
 * @author idmin
 *
 */
@Component
public interface MessageDao {

	public String get(String id);

	public User getUserById(int id);

	public List<Group> getAllGroupByUser(int userId);

	public List<User> getAllUserByUser(int userId);

	public void addGroupUser(int userId, String groupId);

	public List<User> getGroupUsers(String groupId);

	public UserMessageData getFriendsOfflineMessage(String userId);
}
